/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package br.com.proteu.hibernate.beans;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;

/**
 *
 * @author ricardo
 */
@Entity
@Table(name="EST_COMB")
public class EstCombProteu implements Serializable{

    @Id
    @Column(name="EST_COM_CODIGO")
    private String estComCodigo;
    @Column(name="COD_SISTEM")
    private Double codSistem;
    @Column(name="TUMOR")
    private String tumor;
    @Column(name="NODOS")
    private String nodos;
    @Column(name="METASTASE")
    private String metastase;
    @Column(name="GRAU")
    private String grau;
    @Column(name="ESTADIO")
    private String estadio;
    @Column(name="COD_ESTSUS")
    private Double codEstsus;
    @Column(name="USU_GRAVAC")
    private String usuGravac;
    @Column(name="DAT_GRAVAC")
    @Temporal(javax.persistence.TemporalType.TIMESTAMP)
    private Date datGravac;//timestamp
    @Column(name="HOR_GRAVAC")
    private String horGravac;


    public Double getCodEstsus() {
        return codEstsus;
    }

    public void setCodEstsus(Double codEstsus) {
        this.codEstsus = codEstsus;
    }

    public Double getCodSistem() {
        return codSistem;
    }

    public void setCodSistem(Double codSistem) {
        this.codSistem = codSistem;
    }

    public Date getDatGravac() {
        return datGravac;
    }

    public void setDatGravac(Date datGravac) {
        this.datGravac = datGravac;
    }

    public String getEstComCodigo() {
        return estComCodigo;
    }

    public void setEstComCodigo(String estComCodigo) {
        this.estComCodigo = estComCodigo;
    }

    public String getEstadio() {
        return estadio;
    }

    public void setEstadio(String estadio) {
        this.estadio = estadio;
    }

    public String getGrau() {
        return grau;
    }

    public void setGrau(String grau) {
        this.grau = grau;
    }

    public String getHorGravac() {
        return horGravac;
    }

    public void setHorGravac(String horGravac) {
        this.horGravac = horGravac;
    }

    public String getMetastase() {
        return metastase;
    }

    public void setMetastase(String metastase) {
        this.metastase = metastase;
    }

    public String getNodos() {
        return nodos;
    }

    public void setNodos(String nodos) {
        this.nodos = nodos;
    }

    public String getTumor() {
        return tumor;
    }

    public void setTumor(String tumor) {
        this.tumor = tumor;
    }

    public String getUsuGravac() {
        return usuGravac;
    }

    public void setUsuGravac(String usuGravac) {
        this.usuGravac = usuGravac;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final EstCombProteu other = (EstCombProteu) obj;
        if ((this.estComCodigo == null) ? (other.estComCodigo != null) : !this.estComCodigo.equals(other.estComCodigo)) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        int hash = 7;
        hash = 67 * hash + (this.estComCodigo != null ? this.estComCodigo.hashCode() : 0);
        return hash;
    }



}
